/*
* FILENAME:		stack_seq.h
* CREATED AT:		2012/May/28
* DECRITION:		
* 
* MODULE:		stack
* PLATFORM:		ubuntu-12.04/gcc-4.6.3
* AUTHOR:		incarnation-lee
* 
* ----------------------REVISION HISTROY------------------------
* No.	Date	Revised by	Function	Descrition
* 1	12/5/28	incar-lee	NA		NA
*
*/

#ifndef STACK_SEQ_H
#define STACK_SEQ_H

#include <stddef.h>
#include "udgtd.h"

#define STACK_SEQ_SIZE 100

STATUS stack_seq_demo(void);	/* the interface of this file's implement functions */

STATUS init_sqk(S_sqstack*);				/* initiliazie a sequence stack */
STATUS destory_sqk(S_sqstack*);				/* stack exits */
STATUS clear_sqk(S_sqstack*);				/* stack exits */
STATUS isEmpty_sqk(S_sqstack*);				/* if stack exit and empty */
size_t length_sqk(S_sqstack*);				/* stack exits return length */
S_element *top_sqk(S_sqstack*);				/* stack exits return top elements */
STATUS push_sqk(S_sqstack*,S_element*);			/* push a elemen on the exited stack */
STATUS pop_sqk(S_sqstack*,S_element*);			/* pop a elemen on the exited stack */
STATUS isContain_sqk(S_sqstack*,S_element*);		/* if contain the same element */

#endif
